<form method="POST" action="translation_list_edit.php" id="form_edit_translation_list">
<input type="hidden" name="list[id_list]" value="{{ list.id_list }}" id="list_id_list"/>

<table class="formtable" width="650">
	<tr>
		<td class="label" width="200">Nom * </td>
		<td><input type="text" name="list[libelle]" class="large" value="{{ list.libelle|escape }}"/></td>
	</tr>
	<tr>
		<td class="label"><label for="list_shared">Visible pour tous</label></td>
		<td class="checkbox">
			<input type="checkbox" {{ form.checkboxval(1, list.shared) }} name="list[shared]" id="list_shared" /> 
		</td>
	</tr>
	<tr class="actions">
		<td colspan="2">
			<input type="submit" class="button" value="Enregistrer"/>
		</td>
	</tr>
</table>
{% if list.id_list %}
<div class="label">Mots présents dans la liste</div>
<div id="table-list-translations">
{% include 'translation_list_edit_form.table.html' with {translations: translations_in_list, delete: true, id_list: list.id_list} %}
</div>
<br />
<div>Pour les mots sélectionnés : 
<a href="ajax/translation.list.item.delete.ajax.php?id_list={{ list.id_list }}" class="action-button delete" id="btn-delete-multiple-translations">
	<img src="images/icons/delete.png" width="12" height="12" style="vertical-align: -1px"/> Supprimer
</a>
</div>
<br />
<div class="label">Ajouter un mot à la liste</div>
<div class="filtre">
	Recherche d'un mot <input type="text" class="middle" id="new_translations_search"/>
</div>
<div id="table-new-translations">
</div>
<br />
<div>Pour les mots sélectionnés : 
<a href="ajax/translation.list.item.add.ajax.php?id_list={{ list.id_list }}" class="action-button add" id="btn-add-multiple-translations">
	<img src="images/icons/add.png" width="12" height="12"/> Ajouter
</a>
</div>
<br />
{% endif %}

</form>